package com.markerhub.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("m_teaching_calling_detail")
public class TeachingCallingDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 关联的班级中学生id，注意：这里不是学生id,而是学生在班上上的id
     */
    private Integer stuInClassId;

    /**
     * 关联的点名事件
     */
    private Integer callId;

    /**
     * 签到时间
     */
    private LocalDateTime answerTime;

    /**
     * 点名结果：0 表示未签到，1表示已签到，2表示迟签到，3表示请假
     */
    private String answerResult;

    /**
     * 未签到原因
     */
    private String noAnswerReason;

    /**
     * 点名结果录入老师
     */
    private Integer operatorTeacher;

    // 添加关联查询字段
    @TableField(exist = false)
    private String studentName;

}
